﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_LienHe_DanhSachLienHe : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnGui_Click(object sender, EventArgs e)
    {
        try
        {
            String str = "<div>Họ Tên :" + this.ddlChucVu.SelectedValue + " " + this.txtName.Text + "<br />Địa chỉ :" + this.txtAddress.Text + "<br />Điện thoại :&nbsp;" + this.txtMobile.Text + "<br />Email :" + this.txtEmail.Text + "<br />Tên công ty :" + this.txtCompany.Text + "<br />Nội dung :" + this.txtDetail.Text + "</div>";
            string[] to = { "thiepnd@tantinh.net" };
            clsBSSendMail.sendMail(to, "Thư mới khách hàng gửi từ http://www.dietmoitm.com : " + this.ddlChucVu.SelectedValue + " " + this.txtName.Text, str);
            Response.Redirect("~/camon.aspx");
        }
        catch 
        {
        }
    }
}